from django.db import models

class user(models.Model):
    uname = models.IntegerField(null=True)
    pwd = models.CharField(max_length=10)
    sex = models.CharField(max_length=10)
    tel = models.CharField(max_length=11)
    registration_time = models.DateTimeField(auto_now_add=True)
class tickets(models.Model):
    tname = models.CharField(max_length=100)
    begintime = models.DateTimeField(auto_now_add=True)
    tickets_num = models.IntegerField()
    ticket_remain_num = models.IntegerField()
    price = models.FloatField(max_length=10)
    state = models.CharField(max_length=10,null=True)